docs: add PHPDoc documentation for all hooks#193
Merged
Conversation
Add comprehensive PHPDoc documentation for all 24 filters and 2 actions in the Ad Code Manager plugin, improving discoverability and developer experience. Documented filters include: - Configuration: acm_register_provider_slug, acm_provider_slug, acm_whitelisted_script_urls, acm_whitelisted_conditionals, acm_logical_operator, acm_manage_ads_cap, acm_ad_tag_ids, acm_ad_code_args - Rendering: acm_output_html, acm_output_tokens, acm_output_html_after_tokens_processed, acm_disable_ad_rendering, acm_wrapper_classes (already documented in #188) - Matching: acm_display_ad_codes_without_conditionals, acm_conditional_args, acm_reset_postdata_before_match, acm_matching_ad_code_cache_expiration - Admin: acm_list_table_columns, acm_list_table_per_page, acm_validate_ad_code, acm_allowed_get_posts_args, acm_ad_code_count - Other: acm_default_url, acm_should_do_robotstxt, acm_robotstxt_disallow Documented actions: - acm_tag: Displays an ad tag on the frontend - acm_options_form: Fires in the options form Fixes #157 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
@sincetag, and@paramdocumentationHooks documented
Filters (24):
acm_register_provider_slug,acm_provider_slug,acm_whitelisted_script_urls,acm_whitelisted_conditionals,acm_logical_operator,acm_manage_ads_cap,acm_ad_tag_ids,acm_ad_code_argsacm_output_html,acm_output_tokens,acm_output_html_after_tokens_processed,acm_disable_ad_renderingacm_display_ad_codes_without_conditionals,acm_conditional_args,acm_reset_postdata_before_match,acm_matching_ad_code_cache_expirationacm_list_table_columns,acm_list_table_per_page,acm_validate_ad_code,acm_allowed_get_posts_args,acm_ad_code_countacm_default_url,acm_should_do_robotstxt,acm_robotstxt_disallowActions (2):
acm_tag- Displays an ad tag on the frontendacm_options_form- Fires in the options formFixes #157
Test plan
🤖 Generated with Claude Code